package com.zr.serviceimpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.zr.dao.FunctionDao;
import com.zr.daoimpl.FunctionDaoImpl;
import com.zr.model.Function;
import com.zr.service.FunctionService;

import net.sf.json.JSONArray;

@Repository(value="functionService")
public class FunctionServiceImpl implements FunctionService{
	
	@Resource
	private FunctionDao functionDao; 
	@Override
	public JSONArray getFuncsByParentId(int parentId, String funcs) {
		// TODO Auto-generated method stub
		return functionDao.getUserFuncsByParentId(parentId, funcs);
	}

}
